package QL;

import java.util.Map;

public class ButlerCdkeyGroupGenerateRequest implements IQLRequest
{
    /// <summary>
    /// 区服Id
    /// </summary>
    public long ZoneId;

    /// <summary>
    /// 分组名称
    /// </summary>
    public String GroupName;

    /// <summary>
    /// 分组奖励，格式：
    /// [[0,1,100],[0,2,5000]]
    /// </summary>
    public String GroupRewards;

    /// <summary>
    /// 生成激活码的数量，不能超过10000
    /// </summary>
    public long Count;

    @Override
    public String GetApiName()
    {
        return "butler.cdkey.group.generate";
    }

    @Override
    public void Validate()
    {
    }

    @Override
    public void AddParameters(Map<String, String> map)
    {
        map.put("zone_id", String.valueOf(ZoneId));
        map.put("group_name", GroupName);
        map.put("group_rewards", GroupRewards);
        map.put("count", String.valueOf(Count));
    }
}
